package com.ruoyi.basicdata.feign;

import com.ruoyi.basicdata.feign.fallbackFactory.MissFallback;
import com.ruoyi.common.core.web.domain.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "ruoyi-nuclein", fallbackFactory = MissFallback.class)
public interface MissionFeign {

    @GetMapping(value = "/mission/missionName/{id}")
    AjaxResult getMissNameByMissionId(@PathVariable("id") Long id);

    /**
     *  根据住户id 获取任务id
     * @param residentId
     * @return
     */
    @GetMapping("/residentmission/missionId/{residentId}")
    AjaxResult getMissNameByResidentId(@PathVariable("residentId") Long residentId);

}
